package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.order.service.api.impl.SampleServiceImpl;
import com.hsgene.sample.dto.GeneticTestingAgencySampleDto;
import com.hsgene.sample.dto.GeneticTestingSampleDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @desc: 样本管理接口
 * @author: 江承良
 * @date: 2018/8/23 11:10
 */
@FeignClient(name = "ms-mod-sample", path = "/v1.0/genetic/testing/sample", fallback = SampleServiceImpl.class)
public interface SampleService {

    /**
     * 查询ById
     *
     * @return
     */
    @GetMapping("{id}")
    ApiResult<GeneticTestingSampleDto> queryById(@PathVariable("id") String id,@RequestParam("typeLabel") String typeLabel);

    /***
     * 批量获取样本数据
     * @author jcl
     * @date 2018/11/8 16:28
     * @param ids
     * @return
     */
    @GetMapping("sampleList")
    ApiResult<List<GeneticTestingSampleDto>> getSamplesByIds(@RequestParam("ids") String ids);
}
